package com.googlecode.icecube.feedback;

import java.util.ArrayList;
import java.util.List;

import javax.faces.model.SelectItem;

import com.googlecode.icefusion.ui.commons.BackingBeanForm;
import com.googlecode.icefusion.ui.commons.form.ICompleter;

/**
 * Manages autocomplete examples.
 * 
 * @author Rainer Eschen
 *
 */
public class Autocomplete extends BackingBeanForm implements ICompleter {

	private static final long serialVersionUID = -2149800975441119401L;

	/**
	 * Completer result value
	 */
	private String value;
	
	public List<SelectItem> getCompleterBaseList() {

		List<SelectItem> list = new ArrayList<SelectItem>();
		list.add(new SelectItem("Andrea","Andrea"));
		list.add(new SelectItem("Barry","Barry"));
		list.add(new SelectItem("Celestine","Celestine"));
		list.add(new SelectItem("David","David"));
		list.add(new SelectItem("Edward","Edward"));
		list.add(new SelectItem("Ferdinand","Ferdinand"));
		list.add(new SelectItem("Gilbert","Gilbert"));
		list.add(new SelectItem("Henry","Henry"));
		list.add(new SelectItem("Isabel","Isabel"));
		list.add(new SelectItem("James","James"));
		list.add(new SelectItem("Kurt","Kurt"));
		list.add(new SelectItem("Liza","Liza"));
		list.add(new SelectItem("Mandy","Mandy"));
		list.add(new SelectItem("Norman","Norman"));
		list.add(new SelectItem("Orlando","Orlando"));
		list.add(new SelectItem("Peter","Peter"));
		list.add(new SelectItem("Quentin","Quentin"));
		list.add(new SelectItem("Ralph","Ralph"));
		list.add(new SelectItem("Susan","Susan"));
		list.add(new SelectItem("Timmy","Timmy"));
		list.add(new SelectItem("Uma","Uma"));
		list.add(new SelectItem("Val","Val"));
		list.add(new SelectItem("Wim","Wim"));
		list.add(new SelectItem("Xavier","Xavier"));
		list.add(new SelectItem("Yul","Yul"));
		list.add(new SelectItem("Zoe","Zoe"));
		return list;
	}

	public String getCompleterValue() {

		return this.value;
	}

	public void setCompleterValue(String value) {

		this.value = value;
	}
}
